<!--弹框-->
<div class="modal fade" id="edit-modal">
	<div class="modal-dialog w600">
		<div class="modal-content">
			<div class="modal-header">
				<h4></h4>
				<i class="fa fa-times" aria-hidden="true" data-dismiss="modal"></i>
			</div>
			<div class="modal-body" style="line-height:30px;">
				<table class="table table-bordered">
					<tr>
						<td class="text-right" width="74"><strong><span class="asterisk">*</span>关联项目</strong></td>
						<td>
							<select id="main_project" class="form-control required_select project" autocomplete="off" style="width:250px">
								<option value="-10" selected>请选择</option>
								<foreach name="project" item="vo">
									<option value="{$vo['project_id']}" <if condition="$project_id eq $vo['project_id']">selected</if>>{$vo['name']}</option>
								</foreach>
							</select>
							<span class="error-item">必填项</span>
						</td>
					</tr>
					<tr>
						<td class="text-right" width="74"><strong>联系人</strong></td>
						<td>
							<select id="project_contact" class="form-control contact" autocomplete="off" style="width:250px">
								<option value="-10" selected>请选择</option>
								<foreach name="contact" item="vo">
									<option value="{$vo['contact_id']}">{$vo['username']}</option>
								</foreach>
							</select>
						</td>
					</tr>
					<tr>
						<td class="text-right"><strong><span class="asterisk">*</span>跟进方式</strong></td>
						<td>
							<select class="form-control required_select follow_type" autocomplete="off" style="width:195px">
								<!-- <option value="-10" selected>请选择</option> -->
								<foreach name="follow_type" item="vo">
									<option value="{$vo['id']}">{$vo['name']}</option>
								</foreach>
							</select>
							<span class="error-item">必填项</span>
						</td>
					</tr>
					<tr>
						<td class="text-right"><strong><span class="asterisk">*</span>工作类别</strong></td>
						<td>
							<span class="checkbox-item">
								<label class="checkbox-inline work_type"><input type="checkbox" name="work_type[]" value="4">初步沟通</label>
								<label class="checkbox-inline work_type"><input type="checkbox" name="work_type[]" value="1">工作建议书</label>
								<label class="checkbox-inline work_type"><input type="checkbox" name="work_type[]" value="2">计划书沟通</label>
								<label class="checkbox-inline work_type"><input type="checkbox" name="work_type[]" value="3">合同沟通</label>
								<span class="error-item">必填项</span>
							</span>
							
						</td>
					</tr>
					<tr>
						<td class="text-right"><strong><span class="asterisk">*</span>商务机会</strong></td>
						<td>
							<span class="radio-item">
								<label class="radio-inline"><input type="radio" name="work_chance" value="1">顺利</label>
								<label class="radio-inline"><input type="radio" checked name="work_chance" value="2">一般</label>
								<label class="radio-inline"><input type="radio" name="work_chance" value="3">困难</label>
								<label class="radio-inline"><input type="radio" name="work_chance" value="4">不确定</label>
								<span class="error-item">必填项</span>
							</span>
						</td>
					</tr>
					<tr>
						<td class="text-right w150"><strong><span class="asterisk">*</span>工作备忘录</strong></td>
						<td>
							<textarea class="form-control w400 remark required-text" autocomplete="off"></textarea>
							<span class="error-item">必填项</span>
						</td>
					</tr>
					<tr>
						<td class="text-right"><strong><span class="asterisk">*</span>项目阶段</strong></td>
						<td>
							<select class="form-control required_select status" autocomplete="off" style="width:195px">
								<foreach name="status" item="vo">
									<option value="{$vo['id']}" <if condition="$project_status eq $vo['id']">selected</if>>{$vo['name']}</option>
								</foreach>
							</select>
							<span class="error-item">必填项</span>
						</td>
					</tr>
					<tr>
						<td class="text-right"><strong>资料上传</strong></td>
						<td>
							<div class="input-group w300 left">
						    	<input type="text" class="form-control file-name" placeholder="请上传附件" autocomplete="off">
					    		<span class="input-group-btn">
					        		<button class="btn file-submit" type="button">上传</button>
						    	</span>
						    </div>
						    <button class="btn file-delete ml5" type="button">删除</button>
						    <input type="hidden" class="file-url" autocomplete="off">
						    <span class="error-item">请上传附件</span>
							<span class="error-item">文件名必填</span>
						</td>
					</tr>
					<tr>
						<td class="text-right"><strong>拜访日期</strong></td>
						<td>
							<input type="text" value="{$today}" class="form-control Wdate w100 visit_date" onclick="WdatePicker()" readonly autocomplete="off" />
						</td>
					</tr>
					
				</table>
			</div>
			<div class="modal-footer">									  
				<button type="button" class="btn btn-affirm">确认</button><button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
			</div>
		</div>
	</div>
</div>